package com.ruoyi.contract.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.contract.mapper.ContractProjectConnectionMapper;
import com.ruoyi.contract.domain.ContractProjectConnection;
import com.ruoyi.contract.service.IContractProjectConnectionService;

/**
 * 合同项目连Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-10-18
 */
@Service
public class ContractProjectConnectionServiceImpl implements IContractProjectConnectionService 
{
    @Autowired
    private ContractProjectConnectionMapper contractProjectConnectionMapper;

    /**
     * 查询合同项目连
     * 
     * @param contractProjectConnectionId 合同项目连主键
     * @return 合同项目连
     */
    @Override
    public ContractProjectConnection selectContractProjectConnectionByContractProjectConnectionId(Long contractProjectConnectionId)
    {
        return contractProjectConnectionMapper.selectContractProjectConnectionByContractProjectConnectionId(contractProjectConnectionId);
    }

    /**
     * 查询合同项目连列表
     * 
     * @param contractProjectConnection 合同项目连
     * @return 合同项目连
     */
    @Override
    public List<ContractProjectConnection> selectContractProjectConnectionList(ContractProjectConnection contractProjectConnection)
    {
        return contractProjectConnectionMapper.selectContractProjectConnectionList(contractProjectConnection);
    }

    /**
     * 新增合同项目连
     * 
     * @param contractProjectConnection 合同项目连
     * @return 结果
     */
    @Override
    public int insertContractProjectConnection(ContractProjectConnection contractProjectConnection)
    {
        return contractProjectConnectionMapper.insertContractProjectConnection(contractProjectConnection);
    }

    /**
     * 修改合同项目连
     * 
     * @param contractProjectConnection 合同项目连
     * @return 结果
     */
    @Override
    public int updateContractProjectConnection(ContractProjectConnection contractProjectConnection)
    {
        return contractProjectConnectionMapper.updateContractProjectConnection(contractProjectConnection);
    }

    /**
     * 批量删除合同项目连
     * 
     * @param contractProjectConnectionIds 需要删除的合同项目连主键
     * @return 结果
     */
    @Override
    public int deleteContractProjectConnectionByContractProjectConnectionIds(Long[] contractProjectConnectionIds)
    {
        return contractProjectConnectionMapper.deleteContractProjectConnectionByContractProjectConnectionIds(contractProjectConnectionIds);
    }

    /**
     * 删除合同项目连信息
     * 
     * @param contractProjectConnectionId 合同项目连主键
     * @return 结果
     */
    @Override
    public int deleteContractProjectConnectionByContractProjectConnectionId(Long contractProjectConnectionId)
    {
        return contractProjectConnectionMapper.deleteContractProjectConnectionByContractProjectConnectionId(contractProjectConnectionId);
    }
}
